/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entidades;


import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author renan
 */
@Entity
@Table(name="CLIENTE")
public class Cliente implements Serializable{
     
    @Id
    @Column(name = "CLID")
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private String id;
    @Column(name = "CLNOME")
    private String nome;
    @Column(name = "CLTELEFONE")
    private String telefone;
    @Column(name = "CLCELULAR")
    private String celular;
    @Column(name = "CLCPF")
    private String cpf;
    @Column(name = "CLLOGIN")
    private String login;
    @Column(name = "CLSENHA")
    private String senha;
    @Column(name = "CLEMAIL")
    private String email;

    public String getCpf() {
        return cpf;
    }

    public void setCpf(String cpf) {
        this.cpf = cpf;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public String getSenha() {
        return senha;
    }

    public void setSenha(String senha) {
        this.senha = senha;
    }

    public String getTelefone() {
        return telefone;
    }

    public void setTelefone(String telefone) {
        this.telefone = telefone;
    }

    public String getCelular() {
        return celular;
    }

    public void setCelular(String celular) {
        this.celular = celular;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    
    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Cliente other = (Cliente) obj;
        if ((this.id == null) ? (other.id != null) : !this.id.equals(other.id)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 1234;
        hash = 23 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }



}
